package com.jdd.modules.visitorLog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @Description: 访客记录
 * @Author: jdd
 * @Date:   2022-04-08
 * @Version: V1.0
 */
@Data
@TableName("t_visitor_log")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="t_visitor_log对象", description="访客记录")
public class VisitorLog {

	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	/**访客姓名*/
	@Excel(name = "访客姓名", width = 15)
    @ApiModelProperty(value = "访客姓名")
	private String visitName;
	/**访客手机号*/
	@Excel(name = "访客手机号", width = 15)
    @ApiModelProperty(value = "访客手机号")
	private String visitMobile;
	/**项目id*/
	@Excel(name = "项目id", width = 15)
    @ApiModelProperty(value = "项目id")
	private String projectId;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
	private String projectName;
	/**登记类型(1-微信小程序2-线下等级)*/
	@Excel(name = "登记类型(1-微信小程序2-线下等级)", width = 15)
    @ApiModelProperty(value = "登记类型(1-微信小程序2-线下等级)")
	private Integer registerType;
	/**来访类型(1-业主邀请2-亲友来访)*/
	@Excel(name = "来访类型(1-业主邀请2-亲友来访)", width = 15)
    @ApiModelProperty(value = "来访类型(1-业主邀请2-亲友来访)")
	private Integer sourceType;
	/**访问房屋id*/
	@Excel(name = "访问房屋id", width = 15)
    @ApiModelProperty(value = "访问房屋id")
	private String visitHouseId;
	/**访问房屋*/
	@Excel(name = "访问房屋", width = 15)
    @ApiModelProperty(value = "访问房屋")
	private String visitHouseName;
	/**业主id*/
	@Excel(name = "业主id", width = 15)
    @ApiModelProperty(value = "业主id")
	private String userId;
	/**业主id*/
	@Excel(name = "业主id", width = 15)
	@ApiModelProperty(value = "业主id")
	private String  userName;
	/**访客车牌号*/
	@Excel(name = "访客车牌号", width = 15)
    @ApiModelProperty(value = "访客车牌号")
	private String visitVehicleNo;
	/**访客类型(1-亲朋2-同事)*/
	@Excel(name = "访客类型(1-亲朋2-同事)", width = 15)
    @ApiModelProperty(value = "访客类型(1-亲朋2-同事)")
	private Integer visitType;

	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createUser;

	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private java.lang.String remark;

	/**实际到访时间*/
	@Excel(name = "实际到访时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "实际到访时间")
	private java.util.Date visitTime;

	/**人行项目编号*/
	@Excel(name = "人行项目编号", width = 15)
	@ApiModelProperty(value = "人行项目编号")
	private String sysProjectCode;

	@ApiModelProperty(value = "到访人数")
	@TableField(exist = false)
	private Integer visitNum;
}
